package com.t.bricks.bussiness.db.entity.paylog;

import com.t.bricks.bussiness.db.entity.paylog.base.PayLogBase;

/**
 * 支付流水'PayLog'表扩展实体类
 * 注意:可根据需要创建不同的多个扩展实体类,而不是把所有的扩展属性都集中到一个类中
 * @author HuangXinBian
 */
public class PayLog extends PayLogBase {
	
	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 复制对象
	 * @param source 数据源
	 * @return PayLog
	 */
	public static PayLog copy(PayLog source) {
		if (null == source) {
			return null;
		}
		
		PayLog target = new PayLog();
		target.setuId(source.getuId());
		target.setsOrdersId(source.getsOrdersId());
		target.setmMoney(source.getmMoney());
		target.setiTally(source.getiTally());
		target.setsCustomerId(source.getsCustomerId());
		target.setsCustomerNo(source.getsCustomerNo());
		target.setdPay(source.getdPay());
		target.setsCreator(source.getsCreator());
		target.setsRecordKey(source.getsRecordKey());
		target.setiErrorCount(source.getiErrorCount());

		return target;
	}
	
	/**
	 * 克隆对象
	 * @return PayLog
	 */
	@Override
	public PayLog clone() {
		return copy(this);
	}
	
}
